import { get, post } from "../assets/js/http";

//获取文章列表
export function articleList(params) {
    return get("/a/article/list", params);
}
//获取文章信息
export function articleInfo(params) {
    return get("/a/article/info", params);
}
//保存文章草稿
export function save(params) {
    return post("/a/article/save", params);
}
//发布文章
export function publish(params) {
    return post("/a/article/publish", params);
}
//编辑已发布的文章
export function modify(params) {
    return post("/a/article/modify", params);
}
//删除文章
export function delArticle(params) {
    return post("/a/article/delete", params);
}
//获取分类列表
export function categoryList(params) {
    return get("/a/category/list", params);
}
//获取分类信息
export function category(params) {
    return get("/a/category", params);
}
//添加分类
export function addCategory(params) {
    return post("/a/category/add", params);
}
//修改分类
export function updateCategory(params) {
    return post("/a/category/modify", params);
}